﻿using System.Data.Entity;

namespace Librerias
{
    ///<summary>
    ///</summary>
    public class BaseDeDatos : DbContext
    {
        ///<summary>
        ///</summary>
        public DbSet<Config> Config { get; set; }
    }

    ///<summary>
    ///</summary>
    public class Config
    {
        ///<summary>
        ///</summary>
        public int Id { get; set; }
        ///<summary>
        ///</summary>
        public string Propiedad { get; set; }
        ///<summary>
        ///</summary>
        public string Valor { get; set; }
    }
    /*
    public class InicializarBase : DropCreateDatabaseIfModelChanges<BaseDeDatos>
    {

        protected override void Seed(BaseDeDatos context)
        {
            base.Seed(context);
            context.Config.Add(new Config() { Propiedad = "AdHost", Valor = "LDAP://10.1.9.33"});
            context.SaveChanges();
            
        }
    }*/
}